<template>
  <el-config-provider :locale="locale">
    <router-view />
  </el-config-provider>
</template>

<script>
import { ElConfigProvider } from 'element-plus'

import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import {ref} from "vue";
export default {
  name: 'App',
  components: {
    [ElConfigProvider.name]: ElConfigProvider,
  },
  setup(){
    let locale = ref(zhCn)
    return{
      locale
    }
  }
}
</script>

<style>
*{
  padding: 0;
  margin: 0;
}
</style>
